Skip to main content

Flashing ESP32 binaries without ESP-IDF

We can flash precompiled binary files with the matching configuration for the target hardware without having to have ESP-IDF. The tool that we are using is esptool.

  1. Collect the required binary files from the build directory.

    1. With ESP-IDF, set the correct configuration for the target device and build the source. The output will be written to build directory.
    2. Copy the following binary files to a desired location:
      1. build/bootloader/bootloader.bin
      2. build/DeepVibe-Leaf-Node.bin (or this will be <your_project_name>.bin)
      3. build/partition_table/partition-table.bin
  2. Install the flashing tool. We are using esptool which can be installed via following command on Linux

    pip install esptool
  3. Flashing to ESP32 EZSBC is done through following command.

    esptool.py --chip esp32 -p COM6 -b 460800 --before=default_reset --after=hard_reset write_flash --flash_mode dio --flash_freq 40m --flash_size 2MB 0x1000 <path_to_your_bootloader.bin> 0x10000 <path_to_your_DeepVibe-Leaf-Node.bin> 0x8000 <path_to_your_partition-table.bin>
    note

    If you are trying to flash to another ESP32 device this should still work. But if it doesn't, we can obtain the correct parameter values to use for esptool by keeping an eye on the command prompt for the exact esptool command used while flashing through ESP-IDF in step #1.